import axios from 'axios';

/**
 * 获取全部规则场景选项
 */
export function getAllRuleScenariosOptions() {
  return axios.get('/ruleScenarios/get/all/ruleScenarios/options');
}

/**
 * 查询规则场景
 * @param scenariosKey 规则场景Key
 */
export function getRuleScenarios(scenariosKey: string) {
  return axios.get(`/ruleScenarios/get/ruleScenarios/by/${scenariosKey}`);
}

/**
 * 查询业务模型字段列表
 * @param modelKey 模型Key
 */
export function getBusinessModelFields(modelKey: string) {
  return axios.get(`/businessModel/get/fieldList/by/${modelKey}`);
}

/**
 * 执行规则测试匹配
 * @param data 测试数据
 */
export function executeRuleMatch(data: any) {
  return axios.post('/ruleMatch/match', data);
} 